package day02;
/**
 * 
 * @author Administrator
 *
 */
public class FeiBo {
	public   int  digui(int n) {
		if(n==1 || n==2)
		{   
			return 1;
		}
		return digui(n-1)+digui(n-2);
	}
	public static void main(String[] args) {
		//FeiBo为非静态方法创建对象
		FeiBo a= new FeiBo();
		//引用该方法
		    for (int i = 1; i < 20; i++) {
		    	
			int j =a.digui(i);
			
			System.out.println(j);
		     
		    }
		
		    
	}
}
